home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
5_5.lha
/
5_5
/
5_5c3sth.h
< prev
next >
Wrap
Text File
|
1993-08-08
|
1KB
|
57 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ stackalloc.h
/ Manage a location on the stack.
/ WE32100 version.
/ Uses class intalloc to find
/ the location.
ifndef STACKALLOC_H
define STACKALLOC_H
ifdef NONLOCAL /* DELETE */
include <intalloc.h>
else /* DELETE */
include "intalloc.h" /* DELETE */
endif /* DELETE */
include <stream.h>
lass stackalloc
int loc;
const intalloc *ia;
ublic:
stackalloc(const intalloc *a) :
ia(a)
{
loc = a->get();
}
~stackalloc()
{
ia->free(loc);
}
ifdef USE8086 /* DELETE */
include "5_5c3sth6.h" /* DELETE */
else /* DELETE */
ostream &print(ostream &out)
{
out << (loc * 4) << "(%sp)";
return out;
}
endif /* DELETE */
;
endif /* STACKALLOC_H */